<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 228px;
            height: 270px;
            margin: 100px auto;
            border: 1px red solid;
            position: relative;
        }

        .ig {
            overflow: hidden;
        }

        .box>img {
            position: absolute;
            top: 8px;
            right: -6px;
        }

        .txt p:first-child {
            font-size: 14px;
            text-align: center;
        }

        .txt p:last-child {
            font-size: 12px;
            text-align: center;
            color: #929292;
        }

        .txt p:last-child span {
            color: #f77321;
        }

        .txt {
            width: 228px;
            padding-top: 10px;
            position: absolute;
            /* 位移 */
            transform: translateY(-50px);
            /* 过度效果 */
            transition: all .5s;
        }

        .box:hover .txt {
            transform: translateY(-80px);
        }

        .box .ig img {
            transition: all .5s;
        }

        .box:hover .ig img {
            /* 放大1.1倍 */
            transform: scale(1.1);
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="ig">
            <img src="./images/product.png" alt="" width="100%">
        </div>
        <img src="./images/hot.png" alt="">
        <div class="txt">
            <p>Android网络图片加载框架详解</p>
            <p><span>高级</span> • 1125人在学习</p>
        </div>
    </div>
</body>

</html>